package com.zhixin.fans.ks.ui.history;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import com.zhixin.fans.ks.R;
import com.zhixin.fans.ks.api.res.CoinHistory;

import java.util.List;

import android.support.annotation.Nullable;

public class CoinHistoryAdapter extends BaseQuickAdapter<CoinHistory, BaseViewHolder> {
    public CoinHistoryAdapter(@Nullable List<CoinHistory> data) {
        super(R.layout.item_order_history, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CoinHistory item) {
        helper.setText(R.id.tv_oder_time, item.getAdd_time())
                .setText(R.id.tv_oder_money, item.getDesc());
    }
}
